package org.mq.mymq.common.enums;

/**
 * @ClassName BrokerEventCode
 * @Description Broker服务端事件处理code
 * @Author jiarong_ye
 * @Date 2025/6/27 14:43
 * @Version 1.0
 */
public enum BrokerEventCode {
    PUSH_MSG(1001, "推送消息"),
    CONSUME_MSG(1002, "消费消息"),
    CONSUME_SUCCESS_MSG(1003, "消费成功"),
    CREATE_TOPIC(1004, "创建Topic"),
    START_SYNC_MSG(1005, "从节点开启同步信息"),
    ;

    int code;
    String desc;

    BrokerEventCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
